package com.xdh.springcloud.producer.helloword.service;

import com.xdh.springcloud.producer.helloword.bean.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

public interface HelloWordServiceRemote {

    @GetMapping(value = "/hello1")
    String sayHello(@RequestParam(value = "name") String name);

    @PostMapping(value = "/hello2")
    User sayHello(@RequestBody User user);
}
